package com.yuncheng.spcyApi.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuncheng.spcyApi.entity.SpcyKpNdkpBasic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuncheng.vo.CurrentUserVo;
import com.yuncheng.spcyApi.vo.ndkp.NdkpFlowVo;
import com.yuncheng.spcyApi.vo.common.OrderItemVo;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 审评查验-年度考核基本表
 * @Author: yuncheng
 * @Date: 2023-03-28
 * @Version: V1.0
 */
public interface SpcyKpNdkpBasicMapper extends BaseMapper<SpcyKpNdkpBasic> {
    Page<NdkpFlowVo> flowJobPage(Page<NdkpFlowVo> page,
                                 @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                 @Param("user") CurrentUserVo user,
                                 @Param("flowVo") NdkpFlowVo ndkpFlowVo);

    Page<NdkpFlowVo> flowJkPage(Page<NdkpFlowVo> page,
                                @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                @Param("user") CurrentUserVo user,
                                @Param("flowVo") NdkpFlowVo ndkpFlowVo);

    /** 年度考评-我的待办 */
    Page<NdkpFlowVo> selectFlowJobPage(Page<NdkpFlowVo> page,
                                       @Param("userid") String userid,
                                       @Param("flowVo") NdkpFlowVo ndkpFlowVo,
                                       @Param("orderBean") OrderItemVo orderItemVo);

    /** 年度考评-我的已办 */
    Page<NdkpFlowVo> selectYbFlowJobPage(Page<NdkpFlowVo> page,
                                       @Param("userid") String userid,
                                       @Param("flowVo") NdkpFlowVo ndkpFlowVo,
                                       @Param("orderBean") OrderItemVo orderItemVo);
    /** 年度考评-年度考评查询 */
    Page<NdkpFlowVo> selectNdkpcxPage(Page<NdkpFlowVo> page,
                                         @Param("userid") String userid,
                                         @Param("flowVo") NdkpFlowVo ndkpFlowVo,
                                         @Param("orderBean") OrderItemVo orderItemVo);
}
